<div class="payment-shade" i-dom="payShade"></div>

<div class="payment-body" i-dom="payBody">
    <div>
        {{if close}}
        <div class="payment-close" i-tap="close"></div>
        {{/if}}
        <div class="payment-title">选择支付渠道</div>

        {{if wx_pub}}
        <div class="pay-type" data-pay="wx_pub" i-tap="pay">
            微信支付
        </div>
        {{/if}}

        {{if ali_pay}}
        <div class="pay-type" data-pay="alipay_wap" i-tap="pay">
            支付宝支付
        </div>
        {{/if}}

    </div>
</div>

<style>
    .pay-type {
        background: #f0f0f0 no-repeat 16px center;
        background-size: 24px;
        font-size: 16px;
        text-align: left;
        padding-left: 48px;
        height: 44px;
        line-height: 44px;
        margin-top: 8px;
    }

    [data-pay="wx_pub"] {
        background-image: url(img/ic_pay_wxpay.png);
    }

    [data-pay="alipay_wap"] {
        background-image: url(img/ic_pay_alipay.png);
    }

    .payment-shade {
        position: fixed;
        width: 100%;
        height: 150%; /* 150%是为了在ios滑动中锁死webview也不会产生BUG */
        bottom: 0;
        left: 0;
        opacity: 0;
        z-index: 200;
        transition: opacity 0.3s;
        -webkit-transition: opacity 0.3s;
        background: rgba(0, 0, 0, 0.4);
    }

    .payment-body {
        position: fixed;
        transition: width 0.2s;
        background: #fafafa;
        -webkit-transition: height 0.2s;
        z-index: 202;
    }

    .payment-body > div {
        text-align: center;
        padding: 8px;
        opacity: 0;
        transition: opacity 0.1s;
        -webkit-transition: opacity 0.1s;
    }

    .payment-title {
        padding: 10px;
        font-size: 14px;
        color: #888888;
    }

    .payment-close {
        position: absolute;
        right: 0;
        margin: 12px 16px;
        width: 12px;
        height: 12px;
        float: right;
        background: url(img/ic_close.png) no-repeat center;
        background-size: contain;
    }

</style>